<?php

namespace Admin\Controller;

use Think\Controller;
use Org\Net\Http;

class HotelController extends Controller {
	/**
	 * 获取餐饮列表
	 */
	public function index() {
		$diet = D ( "Hotel" );
		$list = $diet->select ();
		for($i = 0; $i < count ( $list ); $i ++) {
			$list [$i] ['image'] = split ( ",", $list [$i] ['image'] );
		}
		$this->assign ( 'list', $list );
		$this->display ();
	}
	public function add(){
		if(IS_POST){
			var_dump($_POST);
		}else{
			$city = D('City');
			$citys = $city->select();
			$this->assign('citys',$citys);
			$this->display();
		}
	}
}